/********************************************************************************
 *    Copyright (C) 2014 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH    *
 *                                                                              *
 *              This software is distributed under the terms of the             *
 *              GNU Lesser General Public Licence (LGPL) version 3,             *
 *                  copied verbatim in the file "LICENSE"                       *
 ********************************************************************************/
#include "HiMusicWaveEvent.h"

ClassImp(HiMusicWaveEvent)

HiMusicWaveEvent::HiMusicWaveEvent() : fPulseHeight(0),
                                     fArrivalTime(0),
                                     fRisingTime(0),
                                     fDecayTime(0),
                                     fPedestal(0),
                                     fChi2_ov_ndf(-1)
{
}

HiMusicWaveEvent::HiMusicWaveEvent(Float_t Ap, Float_t t0, Float_t tr, Float_t td, Float_t ped, Float_t ch2_ov_ndf)
    : fPulseHeight(Ap),
      fArrivalTime(t0),
      fRisingTime(tr),
      fDecayTime(td),
      fPedestal(ped),
      fChi2_ov_ndf(ch2_ov_ndf)
{
}

HiMusicWaveEvent::HiMusicWaveEvent(const HiMusicWaveEvent &event)
    : TObject(event),
      fPulseHeight(event.fPulseHeight),
      fArrivalTime(event.fArrivalTime),
      fRisingTime(event.fRisingTime),
      fDecayTime(event.fDecayTime),
      fPedestal(event.fPedestal),
      fChi2_ov_ndf(event.fChi2_ov_ndf)
{
}

HiMusicWaveEvent::~HiMusicWaveEvent()
{
}

void HiMusicWaveEvent::Reset()
{
    fPulseHeight = 0;
    fArrivalTime = 0;
    fRisingTime = 0;
    fDecayTime = 0;
    fPedestal = 0;
    fChi2_ov_ndf = -1;
}